package com.lulin.mall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lulin.common.utils.PageUtils;
import com.lulin.mall.ware.entity.PurchaseEntity;
import com.lulin.mall.ware.vo.MergeVO;
import com.lulin.mall.ware.vo.PurchaseDoneVO;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author lulin
 * @email 2032327049@qq.com
 * @date 2022-09-21 17:18:25
 */
public interface PurchaseService extends IService<PurchaseEntity> {
    //分页查询
    PageUtils queryPage(Map<String, Object> params);

    //查询采购单的状态为：新增 或者 已经分配的采购单信息
    PageUtils queryPageUnreceive(Map<String, Object> params);

    //将采购需求单进行合并
    Integer merge(MergeVO mergeVO);

    //根据id,领取采购单
    void received(List<Long> ids);
    //完成采购
    void done(PurchaseDoneVO vo);
}

